package org.jjche.mybatis.param;

import com.baomidou.mybatisplus.core.toolkit.Constants;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.jjche.common.annotation.Dict;

/**
 * <p>
 * 排序枚举
 * </p>
 *
 * @author miaoyj
 * @since 2021-12-08
 */
@Getter
@AllArgsConstructor
public enum SortEnum implements Dict<String> {

    /**
     * 主键
     */
    ID_DESC("id " + Constants.DESC, "id倒序"),
    ID_ASC("id " + Constants.ASC, "id正序"),
    ;

    SortEnum(String code, String text) {
        init(code, text);
    }

}
